Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Displaying Raw • Download


meshchatx/src/backend/colour_utils.py 9cd0e66d8aa6dac478b6001f703ca6777f8f709c (9cd0e66d) Text, 292 B

T8b949e# SPDX-License-Identifier: 0BSD AND MIT


Tff7b72class T56d364ColourUtilsTb4b4b4:
Tf0883e@staticmethod
Tff7b72def Td2a8ffhex_colour_to_byte_arrayTb4b4b4(Te6edf3hex_colourTb4b4b4)Tb4b4b4:
T8b949e# remove leading "#"
Te6edf3hex_colour Tff7b72= Te6edf3hex_colourTff7b72.Td2a8fflstripTb4b4b4(Ta5d6ff"Ta5d6ff#Ta5d6ff"Tb4b4b4)

T8b949e# convert the remaining hex string to bytes
Tff7b72return Tffa657bytesTff7b72.Td2a8fffromhexTb4b4b4(Te6edf3hex_colourTb4b4b4)


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────